#include <zmq.h>
#include <string>

int main()
{
    auto ctx = zmq_ctx_new();
    auto s = zmq_socket(ctx, ZMQ_PAIR);
    zmq_connect(s, "tcp://127.0.0.1:8888");
    
    std::string send_buf = "Hello World!";
    zmq_send(s, send_buf.c_str(), send_buf.size(), 0);
    zmq_send(s, send_buf.c_str(), send_buf.size(), 0);

    zmq_close(s);
    zmq_ctx_destroy(ctx);
    return 0;
}